package com.akk.action;

import com.akk.business.AppUserGradeBusiness;
import com.akk.config.annotation.InjectUser;
import com.akk.module.user.entity.User;
import com.akk.utils.RestResponse;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/app")
@Api(value = "app-info",description = "APP信息接口")
public class AppAction {

    @Autowired
    AppUserGradeBusiness appUserGradeBusiness;

    @RequestMapping(value = "/showgrade")
    @ApiOperation(value = "升级列表查询",notes = "获取该APP对应的升级列表", httpMethod = "GET", response = RestResponse.class)
    public RestResponse showGrade(@InjectUser User user) {
        return RestResponse.build(appUserGradeBusiness.showGrade(user.getAppId()));
    }







}
